<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box1 {
            width: 200px;
            height: 200px;
            background-color: red;
        }

        #box2 {
            width: 200px;
            height: 200px;
            background-color: blue;
        }
    </style>

</head>

<body>
    <div id="box1"></div>
    <div id="box2"></div>
    <script>
        let box1 = document.getElementById("box1")
        box1.addEventListener("touchstart", () => {
            console.log("start");
        })
        box1.addEventListener("touchmove", (e) => {
        })
        box1.addEventListener("touchend", () => {
            console.log("touchend");
        })
    </script>
</body>

</html>